<?php
/**
* The grid layout for our index file.
*
* @package fructa
* @since fructa 1.0
*/
?>
<div class="f-grid f-company-grid container">
	<div class="row-fluid f-grid-row">
		<div class="span5 f-grid-txt f-grid-heigth grid-bg1">
			<?php
			$the_query = new WP_Query('name=Company-P01');
			if ($the_query->have_posts()) {
				while ($the_query->have_posts()) {
					$the_query->the_post();
					the_content();
				}
			}
			wp_reset_postdata();
			?>
		</div>
		<div class="span7 f-grid-img">
			<?php
			$the_query = new WP_Query('name=Company-P02');
			while ( $the_query->have_posts() ) {
				$the_query->the_post();
				the_content();
			}
			wp_reset_postdata();
			?>
		</div>
	</div><!-- end of grid block  -->

	<div class="row-fluid f-grid-row" style="height:216px;">
		<div class="span4 f-grid-img ">
			<?php
			$the_query = new WP_Query('name=Company-P03');
			while ( $the_query->have_posts() ) {
				$the_query->the_post();
				the_content();
			}
			wp_reset_postdata();
			?>
		</div>
		<div class="span8 f-grid-txt f-grid-orange2 grid-bg2 f-grid-heigth">
			<?php
			$the_query = new WP_Query('name=Company-P04');
			while ( $the_query->have_posts() ) {
				$the_query->the_post();
				the_content();
			}
			wp_reset_postdata();
			?>
		</div>
	</div><!--  end of grid block  -->
</div><!-- ends of f-grid f-company-grid container -->